//
//  RequestManager.h
//  Leisure
//
//  Created by xalo on 16/6/28.
//  Copyright © 2016年 许仕杰. All rights reserved.
//

#import <Foundation/Foundation.h>
//请求完成后将Data输出
typedef void(^ReauqestCompeleted)(NSData *data);
//请求结束 刷新UI
typedef void(^UpdateUI)();

@interface RequestManager : NSObject

+ (void)fetchDataWithUrl:(NSString *)url
               parameter:(NSDictionary *)parameter
                  method:(NSString *)method
              compeleted:(ReauqestCompeleted)compele
                updateUI:(UpdateUI)update;


@end
